package del3;

import del1.TestJDBC;

import java.sql.*;

public class TestExecuteQueryMethod {
	public static void main(String[] args) throws Exception {
		ExecuteQuery eq = new ExecuteQuery();
		
		TestJDBC.main(null);
		
		String sql = "SELECT * from Person";
		eq.executeQuery(sql, new QueryCallBack() {
			public void processRecord(ResultSet rs) throws SQLException {
				System.out.println(rs.getObject(1)+", "+rs.getObject(2));
			}
		});
	}
}